package com.ktwlsoft.fundmanage.domain.entity.sms;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 短信模板
 *
 * @author Name on 2019/5/5 9:36
 * @version 1.0
 */
@Entity
@Table(name = "sys_sms_template")
@Getter
@Setter
public class SmsTemplate {

    /**主键*/
    @Id
    @Column(name = "id",columnDefinition = "bigint(30) NOT NULL COMMENT '主键'")
    private Long id;

    /**短信模板名称*/
    @ApiModelProperty(value = "短信模板名称")
    @Column(name = "template_name",columnDefinition = "varchar(50) DEFAULT NULL COMMENT '短信模板名称'")
    private String templateName;

    /**短信模板编码*/
    @ApiModelProperty(value = "短信模板编码")
    @Column(name = "encoded",columnDefinition = "varchar(50) DEFAULT NULL COMMENT '短信模板编码'")
    private String encoded;

    /**短信渠道模板ID*/
    @ApiModelProperty(value = "短信渠道模板ID")
    @Column(name = "template_code",columnDefinition = "varchar(50) DEFAULT NULL COMMENT '短信渠道模板ID'")
    private String templateCode;

    /**短信模板签名*/
    @ApiModelProperty(value = "短信模板签名")
    @Column(name = "template_sign",columnDefinition = "varchar(50) DEFAULT NULL COMMENT '短信模板签名'")
    private String templateSign;

    /**短信模板内容*/
    @ApiModelProperty(value = "短信模板内容")
    @Column(name = "template_text",columnDefinition = "varchar(500) DEFAULT NULL COMMENT '短信模板内容'")
    private String templateText;

    /**默认参数*/
    @ApiModelProperty(value = "默认参数")
    @Column(name = "default_param",columnDefinition = "varchar(500) DEFAULT NULL COMMENT '默认参数'")
    private String defaultParam;

    /**短信渠道*/
    @ApiModelProperty(value = "短信渠道")
    @Column(name = "channel_id",columnDefinition = "varchar(30) DEFAULT NULL COMMENT '短信渠道'")
    private String channelId;

    /**状态:1(启用),2(禁用),-1(删除)*/
    @ApiModelProperty(value = "状态:1(启用),2(禁用),-1(删除)")
    @Column(name = "state",columnDefinition = "tinyint(4) DEFAULT 0 COMMENT '状态:1(启用),2(禁用),-1(删除)'")
    private Integer state;

    /**创建时间*/
    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time",columnDefinition = "datetime DEFAULT NULL COMMENT '创建时间'")
    private Date createTime;

    /**修改时间*/
    @ApiModelProperty(value = "修改时间")
    @Column(name = "update_time",columnDefinition = "datetime DEFAULT NULL COMMENT '修改时间'")
    private Date updateTime;

    /**备注*/
    @ApiModelProperty(value = "备注")
    @Column(name = "remark",columnDefinition = "varchar(255) DEFAULT NULL COMMENT '备注'")
    private String remark;

    /**创建人id*/
    @ApiModelProperty(value = "创建人id")
    @Column(name = "create_Id",columnDefinition = "varchar(50) DEFAULT NULL COMMENT '创建人id'")
    private String createId;

    /**修改人id*/
    @ApiModelProperty(value = "修改人id")
    @Column(name = "update_id",columnDefinition = "varchar(50) DEFAULT NULL COMMENT '修改人id'")
    private String updateId;
}